/* 分页参数 */
export function toPageParam(data) {
    let params = data || {};
    params.current = params.current || 1;
    params.size = params.size || 20;
    return params;
}

/* 转换列表格式 */
export function toPageResult(data) {
    return {
        total: 1,
        current: 1,
        size: 20,
        rowKey: "id",
        records: data || []
    }
}
